<script setup lang="ts">
const props = defineProps<{
  modelValue: number
}>()
const emits = defineEmits<{ (e: 'update:modelValue', val: number): void }>()
const btnClick = () => {
  emits('update:modelValue', props.modelValue + 1)
}
</script>

<template>
  <div class="son-page">我是子组件----{{ modelValue }}</div>
  <button @click="btnClick">修改modelValue</button>
</template>

<style lang="scss" scoped></style>
